package com.bocai.yuweiwangluo.activity;

import android.view.View;

import com.bm.library.PhotoView;
import com.bocai.yuweiwangluo.R;
import com.bocai.yuweiwangluo.base.BaseActivity;
import com.bocai.yuweiwangluo.utils.ImageLoaderUtil;

public class BigPicActivity extends BaseActivity {


    @Override
    protected int contentView() {
        return R.layout.activity_big_pic;
    }

    @Override
    protected void setData() {
        String picUrl=getIntent().getStringExtra("picUrl");
        PhotoView ivBigPic=(PhotoView)findViewById(R.id.iv_bic_pic);
        ivBigPic.enable();
        ImageLoaderUtil.loaderImageDefault(picUrl,ivBigPic);
        findViewById(R.id.iv_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        ivBigPic.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
